package com.sean.test

import com.xmh.code.PongApplication
import com.xmh.code.service.BusinessService
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import spock.lang.Specification

@SpringBootTest(classes = [PongApplication])
class BussinessServiceSpec extends Specification {

    @Autowired
    private BusinessService service

    def "test doSomething method"() {
        given:
        String input = "test"
        when:
        def something = service.doSomething(input)
        then: "Verify"
        something == "hello"
    }
}
